package com.weiyuwqj.server.web;

import org.springframework.web.WebApplicationInitializer;

import javax.servlet.ServletContext;
import javax.servlet.ServletException;

public class DefaultLogbackConfig implements WebApplicationInitializer {

    @Override
    public void onStartup(ServletContext servletContext) throws ServletException {
        String path = servletContext.getRealPath("/");
        System.out.println(path+"=======================");
        System.setProperty("weblogs",path);
    }
}